package com.ruige.service;

import com.ruige.service.listenner.MyListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
public class ServiceApplicatrion {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(ServiceApplicatrion.class);
        springApplication.addListeners(new MyListener());
        springApplication.run(args);
    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

}
